# Meta class
class MetaClass(type):

    'toString method'
    def __str__(cls):
        return "Class name is %s" % cls.__name__

# Some random class
class AClass:
    'meta class comes from an external class'
    __metaclass__ = MetaClass


aObj = AClass()
print type(aObj)
print MetaClass.__bases__
print MetaClass.__doc__



    
